<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language='javascript' src="<%=path%>/js/hdm1.js"></script>
	<script type='text/javascript' src='<%=path%>/frame/orgSelect/js/ajaxInitSelect.js'></script>
<script language="javascript" src="<%=path%>/js/util.js"></script>
		<style>
html { overflow-x: hidden; overflow-y: auto; }
</style>

</head>
<body>
<html:form styleId="projectworksheetsForm" action="updateProjectworksheets.do?method=updateProjectworksheets" onsubmit="return save();">
<input type ="hidden" name="id" value="${projectworksheets.id}"/>
<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
    <tr>
      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;项目管理 &gt; 立项管理 &gt; 开发任务书 &gt; 查看</td>
  </tr>
</table>
<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="margb5">
	<tr>
	  <td width="18%" align="center" class="objgy_zi1" id="objgy1" style="cursor:hand;" onclick="bianGY(this.id,'nrgy1')">基本信息</td>
	   <td width="18%" align="center" class="objgy_zi2" id="objgy3" style="cursor:hand;" onclick="bianGY(this.id,'nrgy3')">进度计划</td>
	  <td width="20%" align="center" class="objgy_zi2" id="objgy2" style="cursor:hand;" onclick="bianGY(this.id,'nrgy2')">项目组成员</td>
	  	   <td align="right" ><span >
        &nbsp;
    </span></td>
	</tr>
	<tr>
	  <td colspan="5">
		<table cellspacing="1" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2" id="nrgy1" style="display:">
		  <tr class="bgcolor">
			<td width="18%" align="right" class="zi13">任务书编号：</td>
			<td width="32%" align="left" class="pad2 zi13">
		    ${projectworksheets.projectid}</td>
		    <td width="18%" align="right" class="zi13">项目名称：</td>
			<td width="32%" align="left" class="pad2 zi13">
		    ${projectworksheets.projectname}</td>
		  </tr>
		   <tr class="bgcolor">
                      <td width="18%" align="right" class="zi13">起止时间：</td>
                         <td colspan="3" align="left" class="pad2 zi13">
				       <bean:write name="projectworksheets" property="starttime" format="yyyy-MM-dd"/>至
				     <bean:write name="projectworksheets" property="endtime" format="yyyy-MM-dd"/> </td>
				  </tr>
				  
				  
				  
				  
				  
              <tr class="bgcolor" >
                      <td align="right" class="zi13">项目类别： </td>
				      <td class="pad2 zi13"><ssh:select firstShow="N" propertyName="bak3" defaultName="${projectworksheets.bak3}" pid="project_category" type="3"/></td>
									
					  <td width="18%" align="right" class="zi13">项目类型： </td>
                      <td width="32%" class="pad2 zi13">
	                   <ssh:select firstShow="N" propertyName="projectCategory" defaultName="${projectworksheets.projectCategory}" pid="project_type" type="3"/>
					 </td>				
			    </tr>
			    
			       <tr class="bgcolor" >
                      <td align="right" class="zi13"><bean:message
									key="com.application.projectrfps.entity.projectrfps.createpage.year"
									bundle="projectrfps" />： </td>
				      <td class="pad2 zi13">  ${projectworksheets.year}
	                    </td>
									
					  <td width="18%" align="right" class="zi13">是否有外协： </td>
                      <td width="32%" class="pad2 zi13">
	                      <ssh:select firstShow="N" propertyName="ifoutsourcing" defaultName="${projectworksheets.ifoutsourcing}" pid="yes_no" type="3"/>
					 </td>				
			    </tr>
               <tr class="bgcolor">
                      <td width="18%" align="right" class="zi13"><bean:message
									key="com.application.projectrfps.entity.projectrfps.createpage.principal"
									bundle="projectrfps" />： </td>
                      <td width="32%" align="left" class="pad2 zi13">
                    ${projectworksheets.principal}
                       </td>
                      <td width="18%" align="right" class="zi13">承担单位： </td>
                      <td width="32%" align="left" class="pad2 zi13">${projectworksheets.undertakedepar}</td>
                    </tr>
                   <tr class="bgcolor">
                      <td align="right" class="zi13">项目费用（万元）：</td>
                      	<td align="left" colspan="3" class="pad2 zi13"> 
                      	        <bean:write name ='projectworksheets' property='cost'  format='######.######'/>&nbsp;                     
                        </td>
                    </tr>
                    <tr class="bgcolor">
                      <td align="right" class="zi13">费用构成及用款计划： </td>
                      <td colspan="3" align="left" class="pad2 zi13">
                      ${projectworksheets.costcomposing}</td>
                    </tr>
                    <tr class="bgcolor">
                      <td align="right"  class="zi13">主要设备、仪器及用途： </td>
                      <td colspan="3" align="left" class="pad2 zi13">
      
                         ${projectworksheets.equipment}
                     </td>
                    </tr>


					  
					  <tr>
					    <td colspan="4">
					          <iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${projectworksheets.id}&type=40002&isShowAdd=N"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>
					    </td>
					  </tr>			  
					  		  <tr>
					    <td colspan="4">
					   <iframe width="100%" height="150px"
							onload="this.height=show_examine.document.body.scrollHeight" src="<%=path%>/findExamineByProIdList.do?method=findExamineByProIdList&processId=${projectworksheets.procid}"
											; scrolling="no" frameborder="0" name="show_examine"
											id="show_examine"></iframe>
											    </td>
					  </tr>	
											
		</table>
		
		    <p>
		 
		<table width="100%"  align="center" border="0" cellspacing="0" cellpadding="0" class="kuang2" id="nrgy3" style="display:none">
		   <tr>
			<td align="left" class="pad5">
			<table cellspacing="1" id="planTable" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2 margb5">
		            <tr>
				    <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">进度安排及完成时间</td>
		           </tr>
		    
		     <logic:present name="workPlanList">
		      <logic:iterate id="elementValue" name="workPlanList" indexId="indexIdPlan">
		      
		        <logic:equal name="categoryType" value="24001">
                  <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">时间:&nbsp;</td>
                <td width="80%" align="left" class="cmsrow" colspan="3">
               &nbsp; 第 <bean:write name="elementValue"  property="quarter"/>季度  &nbsp; &nbsp;     
               <bean:write name="elementValue"  property="startYear"/> 年 
                <bean:write name="elementValue"  property="startMonth"/>月 &nbsp; &nbsp;至&nbsp; &nbsp;  
                 <bean:write name="elementValue"  property="endYear"/> 年  <bean:write name="elementValue"  property="endMonth"/>月   
                 
                  </td>
               
                </tr>   
                 
                <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">计划内容:&nbsp;</td>
                <td width="15%"  align="left" class="cmsrow" colspan="3">
               &nbsp; <bean:write name="elementValue"  property="plancontent"/>     
                  </td>
               
                </tr>   
                
     <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">&nbsp;&nbsp;</td>  <td width="90%" colspan="3"  align="left" class="cmsrow"> </td></tr>
		       </logic:equal>
		       
		       <logic:equal name="categoryType" value="24002">

		              <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">时间:&nbsp;</td>
                <td width="15%"  align="left" class="cmsrow">
               &nbsp; <bean:write name="elementValue"  property="startYear"/>年 <bean:write name="elementValue"  property="startMonth"/>月              </td>
                <td width="15%"  align="right" class="cmsrow">计划内容：&nbsp;</td>
                <td width="50%"  align="left" class="cmsrow">&nbsp;<bean:write name="elementValue"  property="plancontent"/> </td>
                </tr>   
                 
               
     <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">&nbsp;&nbsp;</td>  <td width="90%" colspan="3"  align="left" class="cmsrow"> </td></tr>
		   
		       </logic:equal>
		       
           </logic:iterate>
           </logic:present>  
             </table>
             </td>
             </tr>
					  
	  
		</table>
		
		        
		<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="kuang2" id="nrgy2" style="display:none">
		  <tr>
			<td align="left" class="pad5"><table cellspacing="1" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2 margb5">
			  <tr class="bgcolor1">
				<td align="center" width="10%" class="zi13b">序号</td>
				<td align="center" width="16%" class="zi13b">姓名</td>
				<td align="center" width="17%" class="zi13b">职务/职称</td>
				<td align="center" width="20%" class="zi13b">单位</td>
				<td align="center" width="17%" class="zi13b">角色</td>
				<td align="center" width="20%" class="zi13b">职责、任务</td>
			  </tr>
			   <logic:present name="projectTeamsList">
                      <logic:iterate id="projectTeams" name="projectTeamsList" indexId="indexId">
                      <tr class="bgcolor" align="middle" id="tr${indexId+1}">
                      
                     <td align="center" class="zi13" width="10%">${indexId+1}</td>     
                <td align="center" class="zi13" width="10%">${projectTeams.employeename}&nbsp;</td>
				<td class="padl5 zi13">${projectTeams.headship}&nbsp;</td>
				<td class="padl5 zi13">${projectTeams.departname}&nbsp;</td>
				<td align="center" class="zi13"><ssh:select firstShow="N" propertyName="role"  defaultName="${projectTeams.role}" pid="person_level" type="3"/></td>
				<td class="zi13">${projectTeams.trust}&nbsp;</td>
				
                      
                      </tr>
                     </logic:iterate>
                     </logic:present>
		
			</table>
		</td>
		  </tr>
		</table></td>
	</tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
				    <td align="center">
				    

				     <input class="buttonbg" id="but_return" type="button"
							value="<bean:message key='com.syc.common.projectrfps.return' bundle="projectrfps"/>"
							name="but_return" " onClick="javascript:history.go(-1);" />
				  </tr>
				</table>
</html:form>
</body>
</html>


<script>

//提交审核
function returnSubmits(){
    if(validateForm(document.forms[0],'Y'))
	{
	    document.forms[0].action="addStartFlow.do?method=addStartFlow&type=add";
	    document.forms[0].submit();
		return true;
		
	}else{
	    return false;
	}
	
}
function save(){
	if(validateForm(document.forms[0],'Y'))
	{
		return true;
		
	}else{
	    return false;
	}
}

</script>





